package server;

import java.util.ArrayList;

import common.*;

public class RequestManager {

	private static RequestManager rm;
	
	private static ArrayList<User> users;
	private static ArrayList<Group> groups;
	
	private RequestManager()
	{
		
	}
	
	public static RequestManager getInstance()
	{
		if(rm == null)
		{
			rm = new RequestManager();
		}
		return rm;
	}
	
	public Response processRequest(Request req)
	{
		if(req.task == req.task.JOIN_GROUP)
		{
			req.group.joinGroup(req.requester);
			return new Response();
		}
		return null;
	}
}
